package com.jsu.springboot_crop.entity;

import io.swagger.models.auth.In;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @Author wang
 * @Date 2023/8/26 16:46
 */
@Data
//融资意向表
public class Intention {
    private Integer id;
    @NotBlank(message = "用户名不能为空")
    private String userName;
    @NotBlank(message = "姓名不能为空")
    private String realName;
    @NotBlank(message = "地址不能为空")
    private String address;
    @NotBlank(message = "金额不能为空")
    private Integer amount;//金额
    @NotBlank(message = "用途不能为空")
    private String application;//用途
    @NotBlank(message = "商品名称不能为空")
    private String item;//农作物名称
    @NotBlank(message = "还款日期不能为空")
    private Integer repaymentPeriod;
    @NotBlank(message = "种植面积不能为空")
    private Integer area;//种植面积
    @NotBlank(message = "手机号不能为空")
    private String phone;
    private Date createTime;//创建时间
    private Date updateTime;//更新时间
}
